package com.itheima.a04oopextendsdemo4;

public class Test {
    public static void main(String[] args) {
        Cooker c = new Cooker("qwe", "qwe", 1000.0);
        System.out.println(c.getId()+" "+c.getName()+" "+c.getGongzi());
        c.work();
        c.eat();


        System.out.println("------------------");
        JingLi j = new JingLi();
        j.setId("qwe");
        j.setName("qwe");
        j.setGongzi(1000.0);
        j.setJiangjin(1000.0);
        System.out.println(j.getId()+" "+j.getName()+" "+j.getGongzi()+" "+j.getJiangjin());
        j.work();
        j.eat();

    }
}
